package com.szyt.basicframe.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.szyt.basicframe.common.BaseTableEntity;
import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author mx
 * @since 2025-07-06
 */
@Getter
@Setter
@Accessors(chain = true)
@Builder
@TableName("sys_operation_log")
@ApiModel(value = "SysOperationLog对象", description = "")
public class SysOperationLog implements Serializable{

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @ApiModelProperty("模块名称")
    @TableField("module")
    private String module;

    @ApiModelProperty("操作类型")
    @TableField("type")
    private String type;

    @ApiModelProperty("操作描述")
    @TableField("description")
    private String description;

    @ApiModelProperty("请求URL")
    @TableField("request_url")
    private String requestUrl;

    @ApiModelProperty("请求方法")
    @TableField("request_method")
    private String requestMethod;

    @ApiModelProperty("请求参数")
    @TableField("request_params")
    private String requestParams;

    @ApiModelProperty("操作人")
    @TableField("operator")
    private Long operator;

    @ApiModelProperty("IP地址")
    @TableField("ip")
    private String ip;

    @ApiModelProperty("操作时间")
    @TableField("operation_time")
    private LocalDateTime operationTime;

    @ApiModelProperty("耗时（ms）")
    @TableField("cost_time")
    private Long costTime;

    @ApiModelProperty("操作状态（0=失败，1=成功）")
    @TableField("status")
    private Integer status;


}
